package proxy.cglib;

import proxy.staticproxy.TeacherDao;

/**
 * 客户端
 */
public class Client {

	public static void main(String[] args) {
		TeacherDao teacherDao = new TeacherDao();
		ProxyFactory pf = new ProxyFactory(teacherDao);
		teacherDao = (TeacherDao) pf.getProxyInstance();
		teacherDao.teach();
		System.out.println(1/0);
	}
}
